package circulate_algorithm_study;

import java.util.Arrays;
import java.util.Scanner;

public class Fish_Cute {


    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr = new int[n];
        for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        }
        int[] arrZero = new int[n];
        Arrays.fill(arrZero, 0);
        for (int i = 1; i < arr.length; i++) {
            for (int j = 0; j < i; j++) {
                if (arr[i] > arr[j]) {
                    arrZero[i]++;
                }
            }
        }



        for(int item:arrZero){
            System.out.print(item+" ");
        }

    }
}



